package com.vincent.sciinfo.service;

import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Project;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-project", configuration = FeignPassToken.class)
public interface ProjectService {

    @RequestMapping("/project/show_project")
    List<Project> selectProject(@RequestParam int ope, @RequestParam String teacherId);

    @RequestMapping("/project/add_project")
    int insertProject(@RequestBody(required = false) Project project);

    @RequestMapping("/project/select_one_project")
    Project selectOneProject(@RequestBody(required = false) Project project);
}
